import 'package:json_annotation/json_annotation.dart';

part 'message_model.g.dart';


@JsonSerializable()
class MessageModel extends Object {

  @JsonKey(name: 'code')
  int code;

  @JsonKey(name: 'message')
  String message;

  MessageModel(this.code,this.message,);

  factory MessageModel.fromJson(Map<String, dynamic> srcJson) => _$MessageModelFromJson(srcJson);

  Map<String, dynamic> toJson(value) => _$MessageModelToJson(this);

}

  
